package com.demo.springbooot_demo.pojo.dto;


import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

public class UserDto {
    @NotBlank(message="用户名不能为空")//去除空格
    private Integer userId ;
    private String userName;
    private String password;
    @Email(message="email格式不正确")
    private String email ;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }


}
